package cn.bugstack.domain.activity.service.quota.rule;

/**
 * @Author: Zchy
 * @Description: 责任链的抽象类实现，实现next()和appendNext()方法，实现类所具有的统一的操作放在抽象类中
 * @DateTime: 11/30/2024 2:22 PM
 **/
public abstract class AbstractActionChain implements IActionChain{

    private IActionChain next;

    @Override
    public IActionChain next() {
        return next;
    }

    @Override
    public IActionChain appendNext(IActionChain iActionChain) {
        this.next = iActionChain;
        return this.next;
    }
}
